setBitmap

open fun setBitmap(encodedBitmap: String)

Sets the image of this view using a Base64 encoded string. The string is decoded into a Bitmap which is then displayed.

Parameters

encodedBitmap

The Base64 encoded string representation of the image. If null or invalid, the behavior depends on base64DecodeBitmap.


open fun setBitmap(bitmap: Bitmap)

Sets the image of this view using a Bitmap.

Parameters

bitmap

The Bitmap to display. If null, the current image (if any) might be cleared or behavior might depend on underlying ImageView implementation.